﻿using System;
using Informant.Contacts;
using Informant.Models.Contacts;
using Informant.SmsMessaging;
using System.Runtime.Serialization;

namespace Informant.Models.SmsMessaging
{
	[DataContract(Name = "Message")]
	public class Message : IMessage
	{
		/// <summary>
		/// Gets or sets the number.
		/// </summary>
		/// <value>The number.</value>
		public IPhone Sender
		{
			get { return ServiceModelSender; }
			set { ServiceModelSender = (Phone)value; }
		}
		/// <summary>
		/// Gets or sets the number.
		/// </summary>
		/// <value>The number.</value>
		[DataMember(Name="Sender")]
		public Phone ServiceModelSender { get; set; }
		/// <summary>
		/// Gets or sets the text.
		/// </summary>
		/// <value>The text.</value>
		[DataMember]
		public String Text { get; set; }
	}
}
